//package org.example.zxk.bk.service.impl;
//
//import com.github.pagehelper.PageHelper;
//import org.example.common.config.CommonPage;
//import org.example.zxk.bk.model.dto.QueryUserDTO;
//import org.example.zxk.bk.model.pojo.BkUserPOJO;
//import org.example.zxk.bk.service.PageService;
//import org.springframework.stereotype.Service;
//
//import javax.annotation.Resource;
//import java.util.Date;
//import java.util.List;
//import java.util.UUID;
//
//@Service
//public class PageServiceImpl implements PageService {
//    @Resource
//    private BkUserZkMapper bkUserZkMapper;
//    @Override
//    public CommonPage<BkUserPOJO> queryList(QueryUserDTO dto) {
//        CommonPage<BkUserPOJO> pages = new CommonPage<>();
//        PageHelper.startPage(dto.getPageNum(), dto.getSize());
//        List<UserPOJP> list =  bkUserZkMapper.selectList();
//        int totalPage = bkUserZkMapper.selectSum();
//        com.github.pagehelper.Page listWithPage = (com.github.pagehelper.Page) list;
//        pages.setList(listWithPage);
//        pages.setTotal((long) totalPage);
//        pages.setTotalPage(totalPage%dto.getSize());
//        pages.setPageSize(dto.getSize());
//        //System.out.println(listWithPage);
//
//
//
//        BkUserPOJO pojo = new BkUserPOJO();
//        pojo.setUserId(UUID.randomUUID().toString().replace("-",""));
//        pojo.setAccount("qwe");
//        pojo.setCreateTime(new Date());
//        System.out.println(new Date());
//        bkUserZkMapper.insert(pojo);
//        return pages;
//    }
//}
